package com.example.myapplication2;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class LayoutActivity extends AppCompatActivity {
    private TextView mTitle;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_layout);
        mTitle = findViewById(R.id.title);
        Intent intent = getIntent();
        mTitle.setText(intent.getStringExtra("name"));
    }
}
